<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 设置页面的 基本路径，页面所有资源引入和页面的跳转全部基于 base路径 -->
    <base th:href="${#request.getContextPath()}+'/'">
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,doctor-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="Bookmark" href="/favicon.ico">
    <link rel="Shortcut Icon" href="/favicon.ico"/>

    <script type="text/javascript" th:src="@{/lib/html5shiv.js}"></script>
    <script type="text/javascript" th:src="@{/lib/respond.min.js}"></script>


    <link rel="stylesheet" type="text/css" th:href="@{/h-ui/css/H-ui.min.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/css/H-ui.admin.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/lib/Hui-iconfont/1.0.8/iconfont.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/skin/default/skin.css}" id="skin"/>
    <link rel="stylesheet" type="text/css" th:href="@{/h-ui.admin/css/style.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/lib/bootstrap/css/bootstrap.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/lib/bootstrap-table/bootstrap-table.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/lib/zTree/v3/css/zTreeStyle/zTreeStyle.css}"/>


    <script type="text/javascript" th:src="@{/lib/DD_belatedPNG_0.0.8a-min.js}"></script>
    <script>DD_belatedPNG.fix('*');</script>

    <title>添加医生</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" th:action="${doctor eq null }  ?'doctor/insert':'doctor/update'" method="post"
          id="form-doctor-add">
        <span><h3>患者信息</h3></span>
        <hr />
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-1">患者姓名：</label>
            <div class="formControls col-xs-3 col-sm-3">
                <input type="text" class="input-text" th:value=" ${patients?.patientsName}"
                       th:disabled="true" id="username" name="username">
            </div>
            <label class="form-label col-xs-3 col-sm-3">身份证：</label>
            <div class="formControls col-xs-3 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsIdcard}"
                       th:disabled="true" id="password" name="password">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-1">性别：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsGender}"
                       th:disabled="true"  name="password2">
            </div>

            <label class="form-label col-xs-4 col-sm-3">年龄：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsAge}"
                       th:disabled="true" placeholder="" id="realname" name="realname">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-1">地址：</label>
            <div class="formControls col-xs-3 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsAddress}"
                       th:disabled="true"  placeholder="" id="address" name="address">
            </div>
            <label class="form-label col-xs-3 col-sm-3">过敏史：</label>
            <div class="formControls col-xs-3 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsAllergy}"
                       th:disabled="true"  placeholder="" id="allergy" name="allergy">
            </div>
        </div>


        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-1">电话：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.patientsPhone}"
                       th:disabled="true" placeholder="" id="patientsPhone" name="patientsPhone">
            </div>
            <label class="form-label col-xs-4 col-sm-3">更新日期：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients?.updateTime}"
                       th:disabled="true"  placeholder="" id="updateTime" name="updateTime">
            </div>
        </div>

        <span><h3>病历</h3></span>
        <hr/>
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-1">发病日期：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value=" ${patients.patientsCases?.morbidityDate}"
                       th:disabled="true"  placeholder="" id="phone" name="phone">
            </div>

            <label class="form-label col-xs-4 col-sm-3">接诊类型：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients.patientsCases?.acceptsType}"
                       th:disabled="true"  placeholder="" id="age" name="age">
            </div>
        </div>


        <div class="row cl" id="doctor-expert">
            <label class="form-label col-xs-4 col-sm-1">主诉：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value=" ${patients.patientsCases?.caseTitle}"
                       th:disabled="true"  placeholder="" id="caseTitle" name="caseTitle">
            </div>
            <label class="form-label col-xs-4 col-sm-3">医生建议：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <span th:text="${patients.patientsCases?.doctorTips}"> </span>

            </div>
        </div>

        <div class="row cl" id="doctor-desc">
            <label class="form-label col-xs-4 col-sm-1">诊断详情：</label>
            <div class="formControls col-xs-8 col-sm-4">
                <span th:text="${patients.patientsCases?.caseResult}"></span>
                <!--                        <input type="text" class="input-text" th:value=""-->
                <!--                               placeholder="" id="caseResult" name="caseResult">-->
            </div>

            <label class="form-label col-xs-4 col-sm-2">备注：</label>
            <div class="formControls col-xs-8 col-sm-3">
                <input type="text" class="input-text" th:value="${patients.patientsCases?.caseDesc}"
                       th:disabled="true"  placeholder="" id="age" name="age">
            </div>
        </div>

    </form>


</article>

<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" th:src="@{/lib/jquery/1.11.3/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/jquery.validation/1.14.0/jquery.validate.js}"></script>
<script type="text/javascript" th:src="@{/lib/jquery.validation/1.14.0/messages_zh.js}"></script>
<script type="text/javascript" th:src="@{/lib/jquery.validation/1.14.0/validate-methods.js}"></script>
<script type="text/javascript" th:src="@{/lib/layer/2.4/layer.js}"></script>
<script type="text/javascript" th:src="@{/h-ui/js/H-ui.min.js}"></script>
<script type="text/javascript" th:src="@{/h-ui.admin/js/H-ui.admin.js}"></script> <!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" th:src="@{/lib/My97DatePicker/4.8/WdatePicker.js}"></script>
<script type="text/javascript" th:src="@{/lib/datatables/1.10.0/jquery.dataTables.min.js}"></script>
<script type="text/javascript" th:src="@{/lib/bootstrap-table/bootstrap-table.js}"></script>
<script type="text/javascript" th:src="@{/lib/bootstrap-table/bootstrap-table-zh-CN.min.js}"></script>

</body>
</html>